//常量路由
export  const constantRoute = [
    {
        path:'/login',
        name:'login',
        meta:{
          title:'登录',
          hidden:true,
        },
        component: () => import('@/views/login/index.vue')
    },
    {
        path:'/',
        component: () => import('@/layout/index.vue'),
        meta:{
            title: ''
        },
        redirect: '/home',
        children:[
            {
                path:'/home',
                name:'home',
                meta:{
                  title: '首页',
                  hidden:false,
                  icon:'HomeFilled'
                },
                component: () => import('@/views/home/index.vue')
            },
        ]
    },
    {
        path:'/screen',
        name:'screen',
            meta:{
                title: '大屏',
                hidden:false,
                icon:'Histogram',
            },
            component: () => import('@/views/screen/index.vue')
    },
    {
        path:'/acl',
        name:'acl',
        redirect: '/acl/user',
        meta:{
            title: '权限管理',
            hidden:false,
            icon:'Grid'
        },
        component: () => import('@/layout/index.vue'),
        children: [
            {
                path:'/acl/user',
                meta:{
                    title: '用户管理',
                    hidden:false,
                    icon:'User'
                },
                component: () => import('@/views/acl/user/index.vue'),
            },
            {
                path:'/acl/roles',
                meta:{
                    title: '角色管理',
                    hidden:false,
                    icon:'CircleCheck'
                },
                component: () => import('@/views/acl/roles/index.vue'),
            },
            {
                path:'/acl/permission',
                meta:{
                    title: '菜单管理',
                    hidden:false,
                    icon:'Switch'
                },
                component: () => import('@/views/acl/permission/index.vue'),
            },
        ]
    },
    {
        path:'/product',
        name:'product',
        redirect: '/product/trademark',
        meta: {
          title: '商品管理',
          hidden: false,
          icon:'Loading',
        },
        component:()=>import('@/layout/index.vue'),
        children: [
            {
                path:'/product/trademark',
                name:'trademark',
                meta: {
                  title: '品牌管理',
                  hidden: false,
                  icon:'Bell'
                },
                component:()=> import('@/views/product/trademark/index.vue')
            },
            {
                path:'/product/attr',
                name:'attr',
                meta: {
                    title: '属性管理',
                    hidden: false,
                    icon:'Bell'
                },
                component:()=> import('@/views/product/attr/index.vue')
            },
            {
                path:'/product/sku',
                name:'sku',
                meta: {
                    title: 'SKU管理',
                    hidden: false,
                    icon:'Bell'
                },
                component:()=> import('@/views/product/sku/index.vue')
            },
            {
                path:'/product/spu',
                name:'spu',
                meta: {
                    title: 'SPU管理',
                    hidden: false,
                    icon:'Bell'
                },
                component:()=> import('@/views/product/spu/index.vue')
            },
        ]
    },
    {
        path:'/404',
        name:'404',
        meta:{
          title: '404',
          hidden: true
        },
        component: () => import('@/views/404/index.vue')
    },
    {
        path:'/:pathMatch(.*)*',
        redirect:'/404',
        name:'any',
        meta: {
            title: '任意路由',
            hidden: true
        }
    }
]